package entities;

public class Question {

	private String task;
	private String[] answers;
	private int numberOfCorrectAnswers;
	private int[] correctAnswerIndex;
	private User author;

	public int getNumberOfCorrectAnswers() {
		return numberOfCorrectAnswers;
	}

	public Question(String task, String[] answers, int[] correctAnswerIndex) {
		super();
		this.task = task;
		this.answers = answers;
		this.correctAnswerIndex = correctAnswerIndex;
		this.numberOfCorrectAnswers = correctAnswerIndex.length;
	}

	public User getAuthor() {
		return author;
	}

	public int[] getCorrectAnswerIndex() {
		return correctAnswerIndex;
	}

	public void setCorrectAnswerIndex(int[] correctAnswerIndex) {
		this.correctAnswerIndex = correctAnswerIndex;
	}

	public String getTaskText() {
		return task;
	}

	public String[] getAnswers() {
		return answers;
	}
}
